<style>
<!--
.ez_czag{font:14px verdana;}
-->
</style>

<div class='ez_zag'>
<?=$this->title?>
</div>

<div class='ez_cl'>
<? if (is_array($this->camp)){ 
?>
<table class='ez_cltable'>

<?
foreach ($this->camp as $camp){ ?>
<tr>
<td class='ez_cltd'>

<div class='ez_cldiv0'>
<div class='ez_cldiv1'> <?=$camp['name']?></div>

<div class='ez_cldiv2'><?=$camp['shortdescription']?></div>
</div>
<div class='ez_statusdiv'>
<? 

if ($camp['campstatus']=='') { ?> не участвую <?}
if ($camp['campstatus']=='observer') { ?> наблюдатель <?}
if ($camp['campstatus']=='player' ) { ?> игрок <?}
if ($camp['campstatus']=='autor' ) { ?> автор <?}
if ($camp['toread']=='1') {
	?>
	<div><a href='<?=$this->url(array('controller'=>'index','action'=>'campaign','id'=>$camp['id'])); ?>'>посмотреть</a></div>
	<?
}
?>


</div>
</td>
</tr>
<? }?>
</table>
<? } ?>
</div>